import sys, gc, time
aa = [1,3,5]
print(sys.getrefcount(aa))
# print(gc.get_stats())
print(gc.get_threshold())
print(gc.get_count())
print('********')
gc.set_threshold(100, 5, 5)
for i in range(500000):
    # if i % 100 == 0:
    #     print('yunxing gc 0')
    #     gc.collect()
    class A:
        name = 'name'
        age = 18

        def run(self):
            print('.....')

        pass


    a = A()
    time.sleep(1)
    print(gc.get_count())
print('********')
print(gc.get_stats())
print(gc.get_threshold())
print(gc.get_count())
